package com.devbobcorn.misaka.sounds;

import com.devbobcorn.misaka.Misaka;

import net.minecraft.util.ResourceLocation;
import net.minecraft.util.SoundEvent;
import net.minecraftforge.fml.RegistryObject;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.ForgeRegistries;

public final class ModSoundEvents {
    public static final DeferredRegister<SoundEvent> SOUND_EVENTS = DeferredRegister.create(ForgeRegistries.SOUND_EVENTS, Misaka.MODID);
    
    public static final RegistryObject<SoundEvent> MUSIC_DISC_ONLY_MY_RAILGUN = register("music_disc.only_my_railgun");

    private static RegistryObject<SoundEvent> register(String name) {
        return SOUND_EVENTS.register(name, () -> new SoundEvent(new ResourceLocation(Misaka.MODID, name)));
    }

}
